package com.rwaste.worker.service;

import com.rwaste.commonutils.Msg;
import com.rwaste.worker.entity.BasicInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ly
 * @since 2021-09-25
 */
public interface BasicInfoService extends IService<BasicInfo> {

    //注册方法
    boolean saveWorkerBaseInfo(BasicInfo basicInfo);
    //登录方法
    BasicInfo findBaseInfo(BasicInfo basicInfo);

    BasicInfo findWorkerByid(String id);

    BasicInfo findWorkerByPassword(String mobile,String password);

    boolean freezeWorkerById(String id);

    boolean thawWorkerById(String id);

    boolean delWorker(String id);
}
